package com.bosssoft.goods.domain.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 购物车商品批量操作数据对象
 * @author Fang_Sir
 * @date 2021-04-21
 */
@Getter
@Setter
public class StBatchGoodOperateVO {

    @ApiModelProperty("用户编号")
    @NotNull(message = "用户编号不得为空")
    private Long uid;

    @ApiModelProperty("商品编号")
    @NotNull(message = "商品编号不得为空")
    @Size(min = 1,message = "需添加至少一个商品编号")
    @JsonProperty("gids")
    private long[] goodIds;
}
